#!/usr/bin/python

import sys
import os
import re

affil_re = re.compile(r'affiliation\) ([^)]*)')

# Parse topics and subtopics as primitive concepts.
# All topics are subsumed by COMPUTER_SCIENCE_PROCEEDINGS
def main(file):
    for line in open(file):
	mo = affil_re.search(line)
	if not mo == None:
	    print mo.group(1)


if __name__=="__main__":
    main(sys.argv[1])
